home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / line.h < prev    next >
Text File  |  1993-09-23  |  844b  |  40 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *    FILE:        line.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    October 6, 1990
  7. *
  8. *    Defines 3D line segment for picture application.
  9. */
  10.  
  11. # ifndef    line_h
  12. # define    line_h
  13.  
  14. # include    "segment.h"
  15. # include    "trans.h"
  16. # include    "camera.h"
  17. # include    "project.h"
  18. # include    "coord.h"
  19.  
  20. /******************************************************************
  21. *   3D line
  22. ******************************************************************/
  23. // in TC5 "Line" is already declared, so I use "Lline"
  24. class    Lline:public Segment
  25. {
  26. private:
  27.     Coord3            *c1;
  28.     Coord3            *c2;
  29.     color            line_color;
  30.  
  31. public:    
  32.     Lline(void);
  33.     virtual void    set_coord(double,double,double,double,double,double);
  34.     virtual void    set_color(color);
  35.     virtual void    draw(Camera*,Projector*,Transformation*);
  36.     virtual void    move(Transformation*);
  37.     virtual            ~Lline(void);
  38. };
  39.  
  40. # endif